import manage # initialize django instance
import logging
import logging.config
from settings.logging_config import LOGGING_CONFIG
logging.config.dictConfig(LOGGING_CONFIG)

from redditbot.PrawStreamManager import PrawStreamManager

def main():
    stream_manager = PrawStreamManager()
    while True:
        is_continue = stream_manager.monitor_streams()
        if not is_continue:
            exit(1)

if __name__ == '__main__':
    main()
    